# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: qaqland <qaq@qaq.land>
pkgname=cflow
pkgver=1.7
pkgrel=0
pkgdesc="A C program flow analyzer"
url="https://www.gnu.org/software/cflow/"
arch="all"
license="GPL-3.0-or-later"
makedepends="gettext-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://ftpmirror.gnu.org/cflow/cflow-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d283602ceec6d380fa5f3f2321894369556f6083683f664295106f04b23c41c1eb99e1d4d7dce15631d81c7fcff5dbcee3c4250e5584ed44fe2df61e7e0e6b68  cflow-1.7.tar.gz
"
